package com.tcm.core.mapper;


import com.tcm.core.domain.entity.Hospital;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface HospitalMapper {

    int deleteById(Long id);

    int deleteLogicById(Long id);

    int insert(Hospital record);

    Hospital findById(Long id);

    int update(Hospital record);

    int checkName(@Param("name") String name, @Param("id") Long id);

    Hospital findByName(String name);

    /**
     * 分页数据
     * @return
     */
    List<Hospital> listHospitalPage(@Param("offset") Long offset, @Param("pagesize") Long pagesize);

    Long countHospital();


}